FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g49dd2dc.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g49dd2dc.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=49dd2dc OS_GIT_VERSION=4.10.0-202202160023.p0.g49dd2dc.assembly.stream-49dd2dc SOURCE_DATE_EPOCH=1642707330 SOURCE_GIT_COMMIT=49dd2dc8f511cdee7a846a0a6c49ca0caefeb902 SOURCE_GIT_TAG=49dd2dc8 SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver 
WORKDIR /go/src/github.com/openshift/cluster-machine-approver
COPY . .
RUN make build

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g49dd2dc.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g49dd2dc.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=49dd2dc OS_GIT_VERSION=4.10.0-202202160023.p0.g49dd2dc.assembly.stream-49dd2dc SOURCE_DATE_EPOCH=1642707330 SOURCE_GIT_COMMIT=49dd2dc8f511cdee7a846a0a6c49ca0caefeb902 SOURCE_GIT_TAG=49dd2dc8 SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver 
COPY --from=builder /go/src/github.com/openshift/cluster-machine-approver/machine-approver /usr/bin/
COPY manifests /manifests
ENTRYPOINT ["/usr/bin/machine-approver"]

LABEL \
        io.k8s.display-name="OpenShift cluster-machine-approver" \
        io.k8s.description="This is an OpenShift component for approving new machines" \
        com.redhat.component="ose-cluster-machine-approver-container" \
        maintainer="OpenShift Auth Team <aos-auth-team@redhat.com>" \
        name="openshift/ose-cluster-machine-approver" \
        version="v4.10.0" \
        io.openshift.tags="openshift" \
        io.openshift.release.operator="true" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        release="202202160023.p0.g49dd2dc.assembly.stream" \
        io.openshift.build.commit.id="49dd2dc8f511cdee7a846a0a6c49ca0caefeb902" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-machine-approver" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-machine-approver/commit/49dd2dc8f511cdee7a846a0a6c49ca0caefeb902"

